import { Column, Entity, ManyToOne } from 'typeorm'
import { ApiProperty } from '@nestjs/swagger'

import { BaseModelsWithUUIDPrimary, PostEntity } from './index'

/**
 * @package 图片地址
 * @author liu
 */
@Entity({ name: 'upload' })
export class UploadEntity extends BaseModelsWithUUIDPrimary {
  @Column({ default: null, comment: '路径' })
  url: string
}
